package org.ioc.com.springioc5.model;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class BeanConfig {

    @Bean
    public UserInfo userInfo(){
        return new UserInfo("张三");
    }
    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("李四");
    }
}
